different ways of creating object in JavaScript